<?php

use Illuminate\Routing\Router;

Admin::routes();

Route::group([
    'prefix'        => config('admin.route.prefix'),
    'namespace'     => config('admin.route.namespace'),
    'middleware'    => config('admin.route.middleware'),
], function (Router $router) {
    $router->get('/', 'HomeController@index')->name('admin.home');
    $router->resource('users', UserController::class);
    $router->resource('movi', MoviController::class);
    $router->resource('test', TestController::class);
    $router->resource('goods', GoodsController::class);
    $router->resource('certs', cert\CertController::class);
    $router->resource('cert-provinces', cert\CertProvinceController::class);
    $router->resource('sites', SiteController::class);
    $router->resource('notice-templates', NoticeTemplateController::class);
    $router->resource('email-waits', EmailWaitController::class);
    $router->resource('log', LogController::class);
    $router->get('maileclipse','Mail\MaileclipseController@index');
    $router->resource('code-notes', code\CodeNoteController::class);
});
